// 初始化路由对象
import {createRouter, createWebHistory} from 'vue-router'
// 路由列表
const routes = [
    {
     meta:{
         title:'lcity:站点首页',
         keepAlive:true,
     },
     path:'/',
     name:'Home',
     component:()=> import("../views/Home.vue"),
    },
    {
        meta:{
            title:'lcity:用户登录',
            keepAlive:true,
        },
        path:'/login',
        name:'Login',
        component:()=>import("../views/Login.vue"),
    }
]

// 路由对象实例化
const router = createRouter({
    history: createWebHistory(),
    // 路由列表
    routes,
    }
);
export default router;

